package com.im.adapter;

import org.jivesoftware.smack.RosterEntry;

import android.app.Activity;
import android.content.Context;
import android.view.View;

import com.core.sdk.ui.adapter.MyBaseAdapter;
import com.core.sdk.ui.holder.BaseViewHolder;
import com.core.sdk.ui.holder.IViewHolder;
import com.im.R;
import com.im.holder.RosterEntityHolder;
import com.im.holder.RosterEntityStatus;

public class RosterEntityAdapter extends MyBaseAdapter<RosterEntry, RosterEntityStatus> {

	@Override
	protected void onInitViewType() {
		addViewType(RosterEntry.class, R.layout.item_roster);
	}

	@Override
	protected BaseViewHolder<RosterEntry, RosterEntityStatus> onCreateViewHolder(View view,Context act) {
		return new RosterEntityHolder(view,act);
	}

	@Override
	protected void onDestory() {

	}

	public RosterEntityAdapter(Activity act) {
		super(act);
	}

}
